package pers.cz.service;

import pers.cz.model.TestCase;
import pers.cz.model.TestCaseParams;

import java.util.List;
import java.util.Map;

public interface TestCaseService {

    public List<TestCase> getAllTestcase();

    public List<TestCase> getAllTestcase(String busiCode);

    public List<TestCase> getAllTestcaseByPage(Integer pageStart, Integer pageLimit, Integer userId);

    public TestCase queryTestCaseById(Integer id);

    public List<TestCase> queryAllTestCaseIds(List<Integer> ids);

    public Integer updateTestCase(TestCase testCase);

    public Integer addTestCase(Integer caseId, String caseName, String request, String expectedResponse, String busiCode, String ignoreFields,String caseNameZh, Integer userId);

    public Integer deleteTestCase(Integer id);

    public Integer getCountTestCase(Integer userId);

    public Map<Integer, List<String>> selectAllIdAndCaseName();

    public List<TestCase> getAllTestCaseByTestName(String testName);

    public List<TestCase> getAllTestCaseByFuzzy(String testCaseName);

    public List<TestCaseParams> queryAllTestCaseParams(Integer pageStart, Integer pageLimit);

    public Integer getCountTestCaseParam();

    public Integer addTestCaseParam(TestCaseParams testCaseParams);

    public Integer updateTestCaseParam(TestCaseParams testCaseParams);

    public Integer deleteTestCaseParam(Integer id);

    public TestCaseParams queryTestCaseParamsById(Integer id);
}
